package com.oneonefive.trainticketsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oneonefive.trainticketsystem.pojo.Sale;

import java.io.Serializable;
import java.util.List;


public interface SaleService extends IService<Sale> {
    @Override
    default boolean removeById(Serializable id) {
        return IService.super.removeById(id);
    }
    boolean insertSale(Integer saleId, Integer ticketId, String saleTime,Integer userId);
    List<Sale> selectAllSales(Integer saleId, Integer ticketId,  Integer userId, Integer page);
    int getSaleRowCount(Integer saleId, Integer ticketId, String saleTime,Integer userId);
}
